﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TomNet.Core.Data;

namespace TomNet.IMSC.Model.DbModels.Account
{
    /// <summary>
    /// 工资表
    /// </summary>
    public class Salary : EntityBase<int>
    {
        /// <summary>
        /// 模块ID
        /// </summary>
        public int ModuleID { get; set; }
        /// <summary>
        /// 流水ID
        /// </summary>
        public int RunningsID { get; set; }
        /// <summary>
        /// 工资人员类别
        /// </summary>
        public int UserTypeID { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 状态  0未开   1已开
        /// </summary>
        public int State { get; set; }
        /// <summary>
        /// 税点
        /// </summary>
        [Column(TypeName = "money")]
        public decimal TaxRate { get; set; }
        /// <summary>
        /// 反点
        /// </summary>
        [Column(TypeName = "money")]
        public decimal ReturnRate { get; set; }
        /// <summary>
        /// 提成
        /// </summary>
        [Column(TypeName = "money")]
        public decimal Percentage { get; set; }
        /// <summary>
        /// 金额
        /// </summary>
        [Column(TypeName = "money")]
        public decimal Amount { get; set; }
        /// <summary>
        /// 最低金额
        /// </summary>
        [Column(TypeName = "money")]
        public decimal MinAmount { get; set; }
        /// <summary>
        /// 工资月份
        /// </summary>
        public DateTime SalaryDate { get; set; }
    }
}
